package Client;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.net.Socket;
import java.net.UnknownHostException;


public class Client {

	public static void main(String[] args){

		try {

			//	while(!st.equals("Exit")){
			Socket s = new Socket("130.132.135.110", 8080);
			BufferedReader brc = new BufferedReader(new InputStreamReader(System.in));
			//		BufferedReader br = new BufferedReader(new InputStreamReader(s.getInputStream()));
			BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(s.getOutputStream()));

			String st = brc.readLine();

			while(!st.equals("END")){
				bw.write(st);
				bw.write("\n");
				st = brc.readLine();
			}		

			bw.flush();
			bw.close();

		} catch (UnknownHostException e) {
			System.out.println(e.getMessage());
		} catch (IOException e) {
			System.out.println(e.getMessage());
		}

	}
}
